var app = getApp()
var myhost = app.globalData.myhost
Component({
  data: {
    writename: '',
  },
  properties: {
    item: {
      type: Object,
      default: []
    }
  },
  attached: function() {
    // console.log('enter',myhost + '/writer/selectByPrimaryKey?id=' + this.data.item.writerId)
    wx.request({
      url: myhost + '/writer/selectByPrimaryKey?id=' + this.data.item.writerId,
      success: (res) => {
        this.setData({
          writename:res.data.name
        })
      }
    })
  },
  methods: {
  },
})